import request from '@/utils/request'

//获取评论列表

export default {

  getList(data) {
    return request({
      url: '/comment/get/' + data,
      method: 'get',
    })
},

//查询评论总数
  getRating() {
    return request({
      url: '/comment/ratCount',
      method: 'get',
    })
  },

//根据id获取当前会员
  getone(data) {
    return request({
      url: '/comment/one/' + data,
      method: 'get',
    })
},

//添加评论
  getseave(data) {
    return request({
      url: '/comment/seave',
      method: 'post',
      data
    })
  },

//回复评论
  getupload(data) {
    return request({
      url: '/comment/upload',
      method: 'post',
      data
    })
  }
}
